/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MetricsRetriever.RetrieverComponents;

import DataStructures.Bug;
import DataStructures.BugData;

/**
 *
 * @author Manuel
 */
public abstract class BugManager {

    public abstract BugData getAllBugData();

    protected boolean checkIfSufficient(Bug currentBug) {

        boolean hasTitle = currentBug.getTitle() != null && !currentBug.getTitle().isEmpty();
        boolean hasStatus = currentBug.getStatus() != null && !currentBug.getStatus().isEmpty();
        boolean hasCreationDate = currentBug.getCreationDate() != null;

        boolean success = hasTitle && hasStatus && hasCreationDate;
        return success;
    }
}
